package com.dc.project.mapper;

import com.dc.project.model.StudentUser;
import com.dc.project.model.StudentUserInfo;

/**
 * @Description: StudentUserMapper
 * @Author: ChenXueLi
 * @Date: 2018-05-07 10:35
 */
public interface StudentUserMapper {

    /**
     * 新增学生用户
     * @param studentUser
     * @return
     */
    int addStudentUser(StudentUser studentUser);

    /**
     * 学生用户登录
     * @param studentUser
     * @return
     */
    StudentUser getStudentUserByAccountAndPwd(StudentUser studentUser);

    /**
     * 学生用户修改密码
     * @param studentUser
     * @return
     */
    int updateStudentUserPwdByAccount(StudentUser studentUser);

    /**
     * 学生用户修改个人信息
     * @param studentUserInfo
     * @return
     */
    int updateStudentUserInfo(StudentUserInfo studentUserInfo);

}
